<?php

namespace app\common\model\xiluhouse;

use think\Model;

class RentalCollection extends Model
{

    // 表名
    protected $name = 'xiluhouse_rental_collection';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;
    protected $deleteTime = false;

    protected $err_msg = '';
    // 追加属性
    protected $append = [

    ];

    public function rental(){
        return $this->belongsTo("Rental",'rental_id','id',[],'inner')->setEagerlyType(0);
    }

}
